package com.grp6.game.mvc;

import static org.junit.Assert.*;


import javax.security.auth.Subject;

import org.junit.Test;

import com.grp6.game.model.IModel;
import com.grp6.game.ui.platform.IDialog;
import com.grp6.game.ui.platform.IQuestionValidator;
import com.grp6.game.view.AbstractDialogView;

public class AbstractDialogViewTest {

	private static class IDialogAux implements IDialog{
		@Override
		public void addQuestions(String question, IQuestionValidator validator) {}

		@Override
		public void display() {
		}
		
	}
	
	private static class AbstractDialogViewSubject extends AbstractDialogView<IModel> {

		protected AbstractDialogViewSubject() {
			super(new IDialogAux());
		}

		@Override
		public IModel getModel() {
			// TODO Auto-generated method stub
			return null;
		}

		@Override
		public void update() {
			// TODO Auto-generated method stub
			
		}

		@Override
		public boolean isValid(String question, String answer) {
			// TODO Auto-generated method stub
			return false;
		}
		
	}
	
	@Test
	public void testAddQuestionAndDisplay() {
		AbstractDialogViewSubject subject = new AbstractDialogViewSubject();
		subject.addQuestion("question");
		subject.display();
	}
}
